package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.UserRolePrivileges;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface UserRolePrivilegesMapper {
    int insert(UserRolePrivileges record);

    int insertSelective(UserRolePrivileges record);

    List<UserRolePrivileges>  selectUserRolePrivilegesByUserName(@RequestParam("userName") String userName);
    List<UserRolePrivileges> selectUserRolePrivilegesByAdminId(@RequestParam("adminId") int adminId);
    List<UserRolePrivileges> selectUserRolePrivilegeList();
}